package com.jkt.rms.dataservice.impl;

import java.util.List;

import com.jkt.rms.business.Currency;
import com.jkt.rms.commons.utils.RMSException;
import com.jkt.rms.dataservice.AbstractDataService;
import com.jkt.rms.dataservice.CurrencyDataService;

public class CurrencyDataServiceImpl extends AbstractDataService<Currency> implements CurrencyDataService  {

	@Override
	protected Class<Currency> getReferenceClass() {
		return Currency.class;
	}

	@SuppressWarnings("unchecked")
	public List<Currency> getActiveCurrencyList() throws RMSException{
		return getSession().createQuery("from Currency").list();
	}
	
}
